//
//  LzwArtViewController.m
//  HalfsugarAPP
//
//  Created by 刘志武 on 15/12/30.
//  Copyright © 2015年 刘志武. All rights reserved.
//

#import "LzwArtViewController.h"
#import "Block.h"
@interface LzwArtViewController ()<UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, retain) UITableView *myArtTableView;


@end

@implementation LzwArtViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor redColor];
    
    self.myArtTableView = [[UITableView alloc]initWithFrame:[[UIScreen mainScreen]bounds] style:UITableViewStylePlain];
    self.myArtTableView.backgroundColor = [UIColor redColor];
    [self.view addSubview:self.myArtTableView];
    
    self.myArtTableView.dataSource = self;
    self.myArtTableView.delegate = self;
    
    
    NSString *string = @"http://open3.bantangapp.com/topic/list?app_installtime=1451365479.933367&app_versions=5.1.1&channel_name=appStore&client_id=bt_app_ios&client_secret=9c1e6634ce1c5098e056628cd66a17a5&device_token=c02c60075e7bab110fbdf27e15de3cb61e97360c4ea3545fd8a5936e46c28ccb&os_versions=9.1&page=0&pagesize=20&scene=8&screensize=640&track_device_info=iPhone5%2C3&track_deviceid=A80585E3-D6AD-4A53-BE1C-5963901C96E5&v=9";
    
    [Block creatingDataTask:string parameters:nil Cookie:nil User_Agent:nil successAFNBlock:^(id resuposeObject) {
       
        
    }];
    
    [self.myArtTableView reloadData];
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 2;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    
    
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 270;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
